package cn.felord.r2dbc.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.domain.Persistable;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * the client user type
 *
 * @author ycd0075
 */
@Data
@Table
public class ClientUser implements Persistable<String>, Serializable, Entity {
    @Id
    private String userId;
    private String nickName;
    private String phoneNumber;
    private Integer gender;

    @Override
    public String getId() {
        return userId;
    }

    @Override
    public String getCreatedBy() {
        return null;
    }

    @Override
    public LocalDateTime getCreatedAt() {
        return null;
    }

    @Override
    public String getLastModifiedBy() {
        return null;
    }

    @Override
    public LocalDateTime getLastModifiedAt() {
        return null;
    }

    @Override
    public boolean isNew() {
        return false;
    }
}
